home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / WORDMISC / WRITTOOL.LZH / TEE.DOC < prev    next >
Text File  |  1986-12-18  |  1KB  |  33 lines

  1. -------------------------------------------------------------------------------
  2.  TEE
  3. -------------------------------------------------------------------------------
  4. Summary:
  5.  
  6.      tee filename
  7.  
  8.  
  9. TEE is a text filter that passes the standard input to a designated file (or 
  10. MS-DOS device) in addition to passing it unchanged to the standard output.
  11.  
  12. Examples:
  13.  
  14. Copy the file named original to two new files, newfile1 and newfile2.
  15.  
  16.      tee newfile1 <original >newfile2
  17.  
  18. Echo what is typed at the keyboard onto the screen, while saving the characters
  19. to a file named record.
  20.  
  21.      tee record                         
  22.  
  23. Copy the file named original to a new file (newfile), while printing the 
  24. contents of original on the printer.
  25.  
  26.      tee newfile <original >prn 
  27.  
  28. Take the directory, display it on the screen, save the directory to the file 
  29. named dirlist, sort the directory, and place the sorted directory in the file 
  30. named dirsort.
  31.  
  32.      dir | tee con | tee dirlist | sort > dirsort
  33.